<template>
  <div class="container">
    <div class="iron-man">
      <span></span>
      <span></span>
      <span></span>
      <span></span>
      <img :src="beiliy" alt="贝利亚">
    </div>
    <div class="lines">
      <span></span>
      <span></span>
      <span></span>
      <span></span>
    </div>
    <div class="loading-text">贝利亚还没开发这个功能...</div>
  </div>
</template>

<script setup>
import beiliy from '@/assets/images/beiliya.png'
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #FAD87C, #1e3c55);
  display: flex;
  justify-content: center;
  align-items: center;
}

.iron-man {
  position: relative;
  animation: flight 0.5s linear infinite;
}

.iron-man img {
  width: 250px;
  position: relative;
  z-index: 1;
}

.iron-man span {
  width: 30px;
  height: 1px;
  background-color: #fff;
  position: absolute;
  top: 12px;
  z-index: 0;
  animation: spray 0.3s linear infinite;
}

.iron-man span:nth-child(2) {
  top: 13px;
  animation-delay: -1s;
}

.iron-man span:nth-child(3) {
  top: 14px;
  animation-delay: -2s;
}

.iron-man span:nth-child(4) {
  top: 15px;
  animation-delay: -1.5s;
}

.lines {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.lines span {
  position: absolute;
  width: 20%;
  height: 2px;
  background-color: #fff;
  animation: linemove linear infinite;
}

.lines span:nth-child(1) {
  top: 20%;
  animation-duration: 0.6s;
  animation-delay: -5s;
}

.lines span:nth-child(2) {
  top: 40%;
  animation-duration: 0.8s;
  animation-delay: -1s;
}

.lines span:nth-child(3) {
  top: 60%;
  animation-duration: 0.6s;
  animation-delay: 0s;
}

.lines span:nth-child(4) {
  top: 80%;
  animation-duration: 0.5s;
  animation-delay: -3s;
}

.loading-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 68%;
  color: #1D1D26;
  font-size: 14px;
  letter-spacing: 3px;
  white-space: nowrap;
  animation: textmove 3s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
}

/* 定义动画 */
@keyframes flight {
  0% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -3px) rotate(-1deg);
  }
  20% {
    transform: translate(-2px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 3px) rotate(-1deg);
  }
  60% {
    transform: translate(-1px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-2px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

@keyframes spray {
  0% {
    left: 0;
    opacity: 1;
  }
  100% {
    left: -80px;
    opacity: 0;
  }
}

@keyframes linemove {
  0% {
    left: 200%;
    opacity: 1;
  }
  100% {
    left: -200%;
    opacity: 0;
  }
}

@keyframes textmove {
  0% {
    margin-left: 500px;
    opacity: 0;
  }
  30%, 70% {
    margin-left: 0;
    opacity: 1;
  }
  100% {
    margin-left: -500px;
    opacity: 0;
  }
}
</style>